import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CrawlerService } from './crawler.service';
import { QidianCrawler } from './qidian.crawler';
import { FanqieCrawler } from './fanqie.crawler';
import { Novel } from '../novel/novel.entity';
import { Chapter } from '../novel/chapter.entity';

@Module({
  imports: [TypeOrmModule.forFeature([Novel, Chapter])],
  providers: [CrawlerService, QidianCrawler, FanqieCrawler],
  exports: [CrawlerService, QidianCrawler, FanqieCrawler],
})
export class CrawlerModule {}